package User;

import Book.BookList;
import Operation.IOperation;
//AdminUser类 和 NormalUser类 的父类
public abstract class User {
    public String name;//使用者的姓名
    public IOperation[] iOperations;//存储我们要调用的功能，通过下标去访问
    public User(String name){
        this.name = name;
    }
    public abstract int menu();//菜单

    public void doOperations(int choice, BookList bookList){
        //调用我们要实现的功能 - 增删查改....
        iOperations[choice].work(bookList);
    }
}
